Previous Thread
Next Thread
Print Thread
Rate Thread
#235873 02/10/2003 1:49 PM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Would it be possible (read, not a major pain in the butt to have threads log the searches people do? Mostly because it would be really helpful in determining what people are looking for most, figuring out if we have that information, and if not, how we can get it!, etc.

(Ok, a very small part of me wants to know what those people who leave swearing they'll NEVER be back are actually searching for when they spend hours a week doing searches. And they're always invisible (because, of course, they'd never be back!) and I always just want to pop up a message that says, "Yes, we DO see you! " )


[:"red"]Lisa[/]
Sponsored Links
JacquiL #235874 02/10/2003 2:08 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmm...

Not exactly sure how to pull that off... but that sounds like a great idea.

Maybe something in dosearch.php that writes the search terms to a file.

Yeah, if I had a nickel for everyone who left my forums and was still there.....
I'd have alot of nickels.

JacquiL #235875 02/10/2003 2:16 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Haven't tried this, but this should save the search information in the admin log:

Find this code in dosearch.php:
Code
<br />      // ---------------------<br />      // Grab the tablewrapper<br />      list($tbopen,$tbclose) = $html -> table_wrapper();<br />


Add this ABOVE:
Code
<br />      admin_log("DOSEARCH", "Forum=$Forum, Words=$Words, Match=$Match, Searchpage=$Searchpage, Limit=$Limit, Old=$Old");<br />

c0bra #235876 02/10/2003 3:17 PM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305


[:"red"]Lisa[/]
JacquiL #235877 02/10/2003 4:50 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
You're welcome.

The admin_log is so easy to use it can be done for almost anything you want to keep track of.

Sponsored Links
c0bra #235878 02/10/2003 10:40 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Or... we could get more complicated and create a table in the database to store search words and the boards searched. Then we could query the table for various things such as how many times a specific word is searched for or what board is searched the most...

SELECT COUNT(*) FROM w3t_SearchData WHERE S_Words LIKE '%LISA IS NOSEY%'

sjsaunders #235879 02/10/2003 10:42 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
LOL
I'm writing a book about thing Lisa_P searches for here.

Daine #235880 02/10/2003 10:52 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
You know I really do like this idea though. Only one query would be needed per search to add the search terms, board and timestamp to the table. A number of stats could be created from this information.

sjsaunders #235881 02/10/2003 11:03 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
phpBB does something like this. It uses some extra database tables for storing search words.

joeuser #235882 02/10/2003 11:10 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
They use more than one table to store the search terms? How do they break it down? I was just thinking of a single table but maybe there's more that can be accomplished with 2 or more.

It would definately give admins some insight in regards to their user's needs.

Sponsored Links
sjsaunders #235883 02/11/2003 11:39 AM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yeah, that is a nice idea for a mod, I'd like that as well. Maybe a field to enter the number of search results for the query as well? But that would need an extra query unless MySQL 4 is used I believe.

sjsaunders #235884 02/11/2003 11:51 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
[]They use more than one table to store the search terms? How do they break it down?[/]

There are three tables. I don't know exactly how they're used. phpBB seems to use a more standardized approach to database design than UBB.threads, perhaps intended to comply with the database normalization rules. In places where UBB.threads would use one table, phpBB may use two or three, and rely more heavily on joins. Almost all the configuration settings are also stored in the database, rather than in files.

OT: phpBB also uses a more consistent column-naming convention (which helps greatly in understanding the database), and is more consistent in its use of flags (1/0, instead of Y/N, yes/no, on/off, etc.).

sjsaunders #235885 02/12/2003 4:19 PM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Actually the log has been pretty interesting so far. (No former "I'll never return" members yet though. ) There are a lot of searches for a few stores we don't really push that much (and I guess maybe we should!)

Having a separate log would be great though. It works fine in the admin log, but our admin log normally had about 50 entries a day, and the search increased it to around 300. That's a lot to glance over for a day. (Especially if you're nosy like me. )


[:"red"]Lisa[/]
JacquiL #235886 03/11/2003 3:01 AM
Joined: May 2002
Posts: 41
User
User
Offline
Joined: May 2002
Posts: 41
I have had an ongoing problem for several months now whereby someone (probably a moderator) is editing people's posts and adding words like "gay" or other such things, or just editing them with an extra space to mess up the date in post tracking.

It has been the bane of my admin life and has proven particularly elusive. Using the code below I FINALLY caught the culprit and banned him.

The following code will add all post editing activity (by any user) to your admin log.

Find this code in editpost.php:
Code
<br />      // ---------------------<br />      // Grab the tablewrapper<br />      list($tbopen,$tbclose) = $html -> table_wrapper();<br />

Add this above:
Code
<br />      admin_log("EDITPOST", "Forum=$Board, PostNumber=$Number);<br />

tanster #235887 03/11/2003 5:58 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for sharing, that should go into the main code! I added the log to modifypost.php instead, so that there wouldn't be several entries for each change, only when something is actually done.

Also the last " is missing, it should look like this:
Code
<br />admin_log("EDITPOST", "Forum=$Board, PostNumber=$Number");<br />

c0bra #235888 03/11/2003 9:23 PM
Joined: May 2002
Posts: 41
User
User
Offline
Joined: May 2002
Posts: 41
D'oh!

Heh, that reminds why I don't work on my boards early in the morning

Thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 701
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)